package com.example.booklist.model;

import lombok.Data;

/**
 * ClassName: PageRequest
 * Package: IntelliJ IDEA
 * Description:
 *
 * @Author 谷京京
 * @Create 2023/11/20 16:33
 * @Version 1.0
 */
@Data
public class PageRequest {
    private Integer currentPage = 1;
    private Integer pageSize = 10;
    private Integer offset;
    public Integer getOffset() {
        return (currentPage - 1) * pageSize;
    }
}
